package com.atguigu.commonUtils;



//统一返回类型枚举
public enum ResultEnum {

    /*
     * 成功
     * */
    SUCCESS(2000,"成功"),
    /*
     * 失败
     * */
    FAIL(3000,"失败"),
    /*
     * 用户账号已登录
     * */
    BEEN_LOGGED(3010,"用户账号已登录"),
    /*
     * token不存在
     * */
    WRONG_TOKEN(3020,"token不存在"),
    /*
     * token已失效
     * */
    INVALID_TOKEN(3030,"token已失效"),

    /*
     * token已失效
     * */
    NOT_LOGIN(3040,"未登录"),
    /*
     * 接口不存在
     * */
    NOT_FOUND(4000,"接口不存在"),
    /*
     * 服务器内部错误
     * */
    INTERNAL_SERVER_ERROR(5000,"服务器内部错误")



    ;

    public Integer code;

    public String message;

    ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
